function columns(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: '',
      key: 'rowIndex',
      width: 100,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '事项名称',
      align: 'center',
      dataIndex: 'itemName',
      key: 'itemName'
    },
    {
      title: '执行人',
      align: 'center',
      dataIndex: 'zxr',
      key: 'zxr'
    },
    {
      title: '状态',
      align: 'center',
      dataIndex: 'zt',
      key: 'zt'
    },

    {
      width: 200,
      dataIndex: 'action',
      align: 'center',
      slots: {title: 'actionName'},
      scopedSlots: {customRender: 'action'}
    }
  ]
  return cols
}

export default columns